<!DOCTYPE html>
<html>
<head>
    <title>用户拥有的所有权限</title>
    <#include "/common/import.ftl" >
    <script>
        var userId = "${userId!''}";

        $(function () {
            $('#rightListAll').datagrid({
                title: '',
                //iconCls:'icon-ok',
                url: 'user-right-all!data.action?userId=' + userId,
                loadMsg: '数据载入中，请稍后……',
                //width:800,
                //height:400,
                //fit:true,
                fitColumns: true,
                nowrap: true,
                rownumbers: true,
                striped: true,
                collapsible: false,
                pagination: true,
                singleSelect: true,
                rownumbers: true,
                remoteSort: false,
                pageList: [10, 20, 30, 50, 100],
                idField: 'actId',
                columns: [[
                    {
                        title: '权限名2', field: 'actCname', width: 300,
                        formatter: function (value) {
                            return '<span style="color:red">' + value + '</span>';
                        }
                    },
                    {title: '英文全称', field: 'fullEname', width: 250},
                    {title: '中文文全称', field: 'fullCname', width: 250}
                ]]
            });

            var p = $('#rightListAll').datagrid('getPager');
            if (p) {
                $(p).pagination({
                    onBeforeRefresh: function () {
                        //alert('before refresh');
                    }
                });
            }
        });


    </script>

</head>

<body>
<table id="rightListAll"></table>

</body>
</html>